package com.easy.orm.jdbc;

import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * <b>参数处理</b>
 * 
 * @author kun
 *
 * @param <T> 处理参数
 */
@FunctionalInterface
public interface ParamsMapper<T> {

	/**
	 * <b>参数处理</b>
	 * 
	 * @param preparedStatement preparedStatement
	 *            {@linkplain java.sql.PreparedStatement}
	 * @param params 设置参数
	 * @throws SQLException 处理异常
	 */
	void setParams(PreparedStatement preparedStatement, T params) throws SQLException;
}
